﻿<%@ Page Language="C#" EnableEventValidation="false" MasterPageFile="~/MasterPage/MasterPage.master"
    AutoEventWireup="true"  Inherits="SouthernLand.RejectNewsLetter"
    CodeBehind="RejectNewsLetter.aspx.cs" %>

<asp:Content ContentPlaceHolderID="PageContent" runat="server">
    <asp:UpdatePanel ID="EmployeesUpdatePanel" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
            <asp:ValidationSummary runat="server" ID="valChangePasswordSummary" ShowMessageBox="true"
                ShowSummary="false" />
            <table border="0" align="center" cellpadding="10">
                <tr>
                    <td colspan="2">
                        <asp:Label runat="server" ID="lblMsg" ForeColor="Blue"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td align="left" class="reject-newsletter-title">
                        Từ chối nhận NewsLetter
                    </td>
                </tr>
                <tr>
                    <td align="left">
                        <b>Email: </b>
                        <asp:TextBox runat="server" ID="txtEmail" Width="150"></asp:TextBox>
                        <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator1" ControlToValidate="txtEmail"
                            ErrorMessage="Email not null" SetFocusOnError="true" Display="none">
                        </asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ErrorMessage="Invalid Email" SetFocusOnError="true"
                            Display="none" ID="RegEmail" runat="server" ControlToValidate="txtEmail" ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" />
                        <asp:Button runat="server" ID="btSubmit" Text="Submit" OnClick="btSubmit_Click" />
                    </td>
                </tr>
                <tr>
                    <td class="reject-newsletter-intruction">
                        <u><b>Hướng dẫn:</b> </u>
                        <br />
                        Nhập địa chỉ Email của bạn vào form bên trên sau đó nhấn nút [Submit] từ lần sau
                        hệ thống sẽ không gởi thư cho bạn nửa.
                    </td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
